package com.gitee.simpleplus.db;

import org.apache.commons.lang3.builder.ToStringBuilder;

public class Column {
	
	private String name;
	private String lowerFirstLetterName;
	private String upperFirstLetterName;
	private String type;
	private boolean autoIncremet;
	private boolean primaryKey;
	private int index;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getLowerFirstLetterName() {
		return lowerFirstLetterName;
	}
	public void setLowerFirstLetterName(String lowerFirstLetterName) {
		this.lowerFirstLetterName = lowerFirstLetterName;
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public boolean isAutoIncremet() {
		return autoIncremet;
	}
	public void setAutoIncremet(boolean autoIncremet) {
		this.autoIncremet = autoIncremet;
	}
	public boolean isPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(boolean primaryKey) {
		this.primaryKey = primaryKey;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getUpperFirstLetterName() {
		return upperFirstLetterName;
	}
	public void setUpperFirstLetterName(String upperFirstLetterName) {
		this.upperFirstLetterName = upperFirstLetterName;
	}
	@Override
	public String toString() {
		ToStringBuilder builder = new ToStringBuilder(this);
		builder.append("name", name);
		builder.append("lowerFirstLetterName", lowerFirstLetterName);
		builder.append("upperFirstLetterName", upperFirstLetterName);
		builder.append("type", type);
		builder.append("autoIncremet", autoIncremet);
		builder.append("primaryKey", primaryKey);
		builder.append("index", index);
		return builder.toString();
	}
	
}
